package com.qqt.csr.ixport.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.util.Date;

/**
 * 导入导出任务Topic配置
 * @author yang hao
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Schema(description = "导入导出任务Topic配置")
@TableName(value = "csr_import_topic_config")
public class ImportTopicConfig implements Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    /**
    * 主键id
    */
    @Schema(description = "主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    /**
    * 服务编码，消费服务编码
    */
    @Schema(description = "服务编码，消费服务编码")
    private String businessCode;

    /**
    * MQ topic
    */
    @Schema(description = "MQ topic")
    private String topic;

    /**
    * MQ Tag
    */
    @Schema(description = "MQ Tag")
    private String tag;

    /**
    * 创建人id
    */
    @Schema(description = "创建人id")
    private Long creatorId;

    /**
    * 创建时间
    */
    @Schema(description = "创建时间")
    @TableField(value = "create_time", fill = FieldFill.INSERT)
    private Date createTime;

    /**
    * 更新时间
    */
    @Schema(description = "更新时间")
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;

}